package com.online.teaching.dao;
import com.online.teaching.pojo.Teacher;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/****
 * @Author:admin
 * @Description:Teacher的Dao
 * @Date 2019/6/14 0:12
 *****/
public interface TeacherMapper extends Mapper<Teacher> {
    /**
     * 查询老师列表
     * @return
     */
    @Select("SELECT * FROM teacher WHERE is_valid =1")
    public List<Teacher>getTeacherList();
}
